/**
 * Created by wanghuan on 2017/4/20.
 */
export default [
  {
    path: '/views/org/employee',
    component: function (resolve) {
      require.ensure([], function(){
        resolve(require('src/pages/org/employee/employeeList.vue'));
      },'employeeList');
    }
  },
  {
    path: '/views/org/employee/employeeDetail/:id',
    component: function (resolve) {
      require.ensure([], function(){
        resolve(require('src/pages/org/employee/employeeDetail.vue'));
      },'employeeDetail');
    },
    children: [
      {
        path:'',
        redirect:'/views/org/employee/employeeDetail/:id/personInfo'
      },
      {
        path: 'personInfo',
        component:function (resolve) {
          require.ensure([], function () {
            resolve(require('src/pages/org/employee/personInfo.vue'));
          }, 'personInfo');
        }
      },
      {
        path: 'payrollInfo',
        component:function (resolve) {
          require.ensure([], function () {
            resolve(require('src/pages/org/employee/payrollInfo.vue'));
          }, 'payrollInfo');
        }
      },
      {
        path: 'attendance',
        component:function (resolve) {
          require.ensure([], function () {
            resolve(require('src/pages/org/employee/attendance.vue'));
          }, 'attendance');
        }
      },
    ]
  },
  {
    path: '/views/org/employee/addEmployee',
    component: function (resolve) {
      require.ensure([], function(){
        resolve(require('src/pages/org/employee/addEmployee.vue'));
      },'addEmployee');
    }
  },
  {
    path: '/views/org/company',
    redirect: '/views/org/company/companyInfo'
  },
  {
    path: '/views/org/company/companyInfo',
    component: function (resolve) {
      require.ensure([], function(){
        resolve(require('src/pages/org/company/companyInfo.vue'));
      },'companyInfo');
    }
  },
  {
    path: '/views/org/company/orgChart',
    component: function (resolve) {
      require.ensure([], function(){
        resolve(require('src/pages/org/company/orgChart.vue'));
      },'orgChart');
    }
  },
  {
    path: '/views/org/company/addOrganization',
    component: function (resolve) {
      require.ensure([], function(){
        resolve(require('src/pages/org/company/addOrganization.vue'));
      },'addOrganization');
    }
  }
]
